package com.java.interfaceLearn;

/**
 * @author Lenl
 * @create 2021-05-31 16:00
 * 练习，比较对象大小
 */
public class Circle{
    //当属性radius声明为Double对象时可以直接使用它的CompareTo方法
    private double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    public Circle() {
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
}